package com.quanyan.ic.vendingMachine.dao;

import com.quanyan.ic.vendingMachine.http.request.ReqSalesRecordCondition;
import com.quanyan.ic.vendingMachine.model.OrderInfo;
import com.quanyan.ic.vendingMachine.model.OrderItem;
import com.quanyan.ic.vendingMachine.model.SalesRecord;

import java.util.List;

/**
 * Created by zhuo.shi on 2017/8/2.
 */
public interface VmOrderDAO {

    List<SalesRecord> querySalesRecordList(ReqSalesRecordCondition condition);

    int countSalesRecordList(ReqSalesRecordCondition condition);

    OrderInfo findOrder(String orderNo);

    OrderItem findOrderItem(String orderNo, String vmNumber, Byte gridNumber);

    void insertOrder(OrderInfo orderInfo);

    void updateOrderPayInfo(String orderNo, String buyer, Byte payWay, Byte payStatus, Long payCallbackTime);

    void updateOrderItemShipInfo(Integer orderItemId, Byte shipStatus, Byte shipQty, Long shipCallbackTime);
}
